package etp.client;

//import java.lang.*;
import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/**
 * @author Ana Paula Varani
 * Projeto que sera desenvolvido
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Projeto implements Serializable {

    /**
	 * Identifica objetos serializados que são desta classe
	 */
	private static final long serialVersionUID = -5823313266529339230L;

	@PrimaryKey
    @Persistent
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	private String pkey;
    
    @Persistent
    private String cod;
	
	@Persistent
	private String nome;

	@Persistent
	private String responsavel;
	
	@Persistent
	private Date inicio;
	
	public Projeto(){
		
		this.cod = "";
		this.nome = "";
		this.responsavel = "";
	
	}
	
	public Projeto(String cod, String nome, String responsavel) {
		
		this.cod = cod;
		this.nome = nome;
		this.responsavel = responsavel;
				
	}
	
	/**
	 * @param pkey the pkey to set
	 */
	public void setPkey(String pkey) {
		this.pkey = pkey;
	}

	/**
	 * @return the pkey
	 */
	public String getPkey() {
		return pkey;
	}

	/**
	 * @return the cod
	 */
	public String getCod() {
		return cod;
	}
	
	public void setCod(String cod){
		this.cod = cod;
	}

	/**
	 * @return the nome
	 */
	public String getNome() {
		return nome;
	}

	/**
	 * @param nome the nome to set
	 */
	public void setNome(String nome) {
		this.nome = nome;
	}

	/**
	 * @return the responsavel
	 */
	public String getResponsavel() {
		return responsavel;
	}

	/**
	 * @param responsavel the responsavel to set
	 */
	public void setResponsavel(String responsavel) {
		this.responsavel = responsavel;
	}
	
	public Date getInicio() {
		return inicio;
	}

	public void setInicio(Date inicio) {
		this.inicio = inicio;
	}

	public String toString(){
		return this.cod + " - " + this.nome;
	}
}
